package cn.easybuy.entity;

import java.util.List;

/*
分页对象
 */
public class PageInfo<T> {
       /*
       1.显示当前页
       2.每页显示的条数
       3.总页数
       4.总记录条数
       5.数据集
        */

    private int pageNo;//当前页
    private int pageSize;//每页显示的条数
    private int pageNum;//总页数
    private int pageCount;//总记录条数
    private List<T>pageList;//数据集

    //生成构造方法

    public PageInfo() {

    }

    public PageInfo(int pageNo, int pageSize, int pageNum, int pageCount, List<T> pageList) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.pageNum = pageNum;
        this.pageCount = pageCount;
        this.pageList = pageList;
    }

    public PageInfo(int pageNo, int pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
    //生成getter和setter方法


    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public List<T> getPageList() {
        return pageList;
    }

    public void setPageList(List<T> pageList) {
        this.pageList = pageList;
    }
}
